//
//  CustomTableViewCell.h
//  Vedio
//
//  Created by Hu Jianguo on 13-4-4.
//  Copyright (c) 2013年 Shida. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlayer.h> 
//#import "ASIHTTPRequest.h"
@class ASINetworkQueue;
@class ProfessionalViewController;
@interface CustomTableViewCell : UITableViewCell
{
//    UIButton*   btnPlay;                //播放
//    UIButton*   btnDownload;            //下载
    
    UIImage*    moviePrview;            //视频截图
    UILabel*    lbComment;              //视频简要 说明
    
    NSString*   movieURL;
    NSString*   movieComment;
    
    NSInteger   cellIndex;              //cell 的标识
    MPMoviePlayerController*   moviePlayer;        //视频播放
    
    //ASINetworkQueue*    networkQueue;   //下载队列
    
    NSString*    downloadPath;
    
    ProfessionalViewController* myprofessional;
    
    NSString* vediotitle;
    NSString* vedioDesc;
    NSString* vidioDate;
}

@property(nonatomic,strong) UIButton*   btnPlay;
@property(nonatomic,strong) UIButton*   btnDownload;
@property(nonatomic,strong) UILabel*    lbComment;
@property(nonatomic,strong) UILabel*    lbtitle;
@property(nonatomic,strong) UILabel*    lbdate;
@property(nonatomic,strong) UIImage*    moviePrview;

@property(nonatomic,strong)  NSString* vediotitle;
@property(nonatomic,strong)  NSString* vedioDesc;
@property(nonatomic,strong)  NSString* vidioDate;
@property(nonatomic,strong)  NSString* vediosource;

-(void)setMovieURL:(NSString*)MovieURL;
-(void)setMovieComment:(NSString*)MovieComment;
-(void)setCellIndex:(NSInteger)cIndex;

-(void)updateCommentAndPreview;

//-(void)readyPlay;

//-(void)startDownload;
//-(void)pauseDownload;
//-(void)continueDownload;
//
//-(void)setNetworkQueue:(ASINetworkQueue*)queue;

-(void)setDownloadPath:(NSString*)path;

-(void)setParentViewController:(ProfessionalViewController*)pro;

-(UIImage*)GetVedioImage;
@end
